package rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;

/*
*
*   服务器至少暴漏如下RPC/RMI接口：
*       bool add(Book b)  添加一个书籍对象
*       Book queryByID(int bookID)  查询指定ID的书籍对象
*       BookList queryByName(String name) 按书名查询书籍列表
*       bool delete(int bookID) 删除指定ID号的书籍对象
*
*/
public interface BookManage extends Remote {

    int add(int a, int b) throws RemoteException;

    boolean add(Book b) throws RemoteException;

    Book queryById(int bookID) throws RemoteException;

    BookList queryByName(String name) throws RemoteException;

    boolean delete(int bookID) throws RemoteException;
}
